package nl.weeaboo.sh.danmaku.commands;

import nl.weeaboo.sh.danmaku.ShotModel;
import nl.weeaboo.sh.danmaku.Spell;
import nl.weeaboo.sh.danmaku.SpellBook;
import nl.weeaboo.sh.danmaku.Universe;

public class TAngleInc extends Spell {

	private float angle;
	
	public TAngleInc(float angle) {
		this.angle = angle;
	}
	protected TAngleInc(TAngleInc t) {
		super(t);		
		angle = t.angle;
	}
	
	public TAngleInc clone() {
		return new TAngleInc(this);
	}
	
	@Override
	public void step(Universe u, SpellBook sb, ShotModel s) {
		s.setAngleInc(angle);
		finish();
	}
	
}
